<extend name="Public/base" />
<!--test--->
<block name="body">    
    <div class="data-table table-striped">  
        <table class="">
            <thead>
                <tr> 
            <th width="25%">代购单编号:{$order.orderid}</th>
            <th class="" width="25%"></th>
            <th class="" width="25%"></th>
            <th class="" width='25%'></th>   
            </tr>
            </thead>
            <tbody>
                <tr>
<!--                    <th>订单当日序号</th>
                    <td>{$order.serialNo}</td>  -->
                    <th>代购单状态</th>
                    <td>{$order.status_text}</td>
                    <th>客户</th>
                    <td>{$order.user_name}</td>   
                </tr>
                <tr>
                    <!--                    <th>订单当日序号</th>
                                        <td>{$order.serialNo}</td>  -->
                    <th>价格</th>
                    <td>{$order.orderprice}</td>
                    <th>业务员</th>
                    <td></td>
                </tr>
                <tr>
                    <th>联系电话</th>
                    <td>{$order.user_tel}</td>  
                    <th>收货地址</th>
                    <td>{$order.user_addr}</td>     
                </tr>
            <tr>
                <th>申请时间</th>
                <td>{$order.create_time|time_format}</td> 
                <th>订单用户备注</th>
                <td> {$order.describe}</td>
            </tr>
            </tbody>
        </table>
    </div>
    <!------左边E------>



    <style>

        .img2wei{margin: 2px;}
        .table2{border: 1px solid #000;}
        .table2 tr th{
            background-color: #F5F5F5;
            font-size: 9px;
            font-weight: normal;
            border: 1px solid #000;
            padding-left: 5px;
        }
        .table2 tr td{
            border: 1px solid #000;
            padding-left: 5px;
            font-weight: bold;
        }   
        .toolbarpr{
            padding:20px;
            border-bottom: 2px solid #006dcc;
            background-color: #091620;
            color: #fff;
        }

    </style>

    <div class="printpage " style='min-height: 27.5cm; max-height: 27.5cm; margin: 0 15px;' >
        <div class="row" style=" background: #353535;color: #fff; height: 30px;line-height: 30px;text-align: left;">
            <div class="col-xs-5"> 商品清单</div>          
        </div>
        <br>
        <div class="row">
            <div class="col-lg-8">
                <form action="{:U('Agent/confirm')}" method="post" id="confirmForm">
                    <input type="hidden"  value="{$order.orderid}" name="orderid"/>
                    <table width="100%" border="0" class="table2  ">
                        <tr >
                            <th>编号</th>
                            <th>商品名称</th>
                            <th  style="width: 60px;">下单数量</th>
                            <th>送货数量</th>
                            <th>单价</th>
                            <th>总价</th>
                        </tr>
                        <volist name="order.order_goods" id="vs">
                            <tr style="line-height: 40px;">
                                <td style=" text-align:center;">
                                    [{$i}]
                                    <input type="hidden" name="id[]" value="{$vs.id}">
                                </td>
                                <td>
                                    <b>{$vs.pname}</b>
                                </td>
                                <td style="width: 30px;">
                                    <b>{$vs.ordernum}</b>
                                </td>
                                <td style="padding:3px;">
                                    <if condition="$order.status EQ 2000"><input type="text" name="num[]" value="{$vs.num}" /></if>
                                    <if condition="$order.status NEQ 2000"><b>{$vs.num}</b></if>
                                </td>
                                <td>
                                    <if condition="$order.status EQ 2000">
                                        <input type="text" name="price[]" value="{$vs.price}" />
                                    </if>
                                    <if condition="$order.status NEQ 2000">
                                        <b>{$vs.price}</b>
                                    </if>
                                </td>
                                <td>
                                    <if condition="$order.status EQ 2000">
                                        <input type="text" name="totalprice[]" value="{$vs.totalprice}" />
                                    </if>
                                    <if condition="$order.status NEQ 2000">
                                        <b>{$vs.totalprice}</b>
                                    </if>
                                </td>
                            </tr>
                        </volist>
                    </table>
                    <br/>
                    <input type="submit" value="确认修改" class="btn btn-success">
                </form>
                <div class="text-right"><br/><button class="btn btn-return" onclick="javascript:history.back(-1);
                        return false;">返 回</button></div>
            </div>
        </div>
    </div>
</block>


<block name="script">
    <script src="__STATIC__/thinkbox/jquery.thinkbox.js"></script>

    <script type="text/javascript">
                    //导航高亮
                    highlight_subnav('{:U('Agent/agent')}');
    </script>
</block>
